<div class="chat-discussion">

<#if (messageList)?? >
    <#list messageList as message>



            <#if (message.senderid)==(order.accepterid)>
                <div class="chat-message left">
                    <img class="message-avatar" src="${resPath+order.acceptIcoUrl}">
                    <div class="message">
                        <a class="message-author"> ${message.senderName}</a>
                        <span class="message-date"> ${(message.messageTime)?string("yyyy-MM-dd HH:mm:ss")}</span>
                        <span class="message-content">
                        <#if (message.mediatype)=='RC:TxtMsg'>
                            ${message.messageText}
                        <#elseif (message.mediatype)=='RC:VcMsg'>
                            这是一条语音消息
                        <#elseif (message.mediatype)=='RC:ImgMsg'>
                            这是一条图片消息
                        <#else>
                            未知消息类型
                        </#if>
                        </span>
                    </div>
                </div>
            </#if>

            <#if (message.senderid)==(order.userid)>
                <div class="chat-message right">
                    <img class="message-avatar" src="${resPath+order.userIcoUrl}">
                    <div class="message">
                        <a class="message-author"> ${message.senderName}</a>
                        <span class="message-date"> ${(message.messageTime)?string("yyyy-MM-dd HH:mm:ss")}</span>
                        <span class="message-content">
                            <#if (message.mediatype)=='RC:TxtMsg'>
                            ${message.messageText}
                            <#elseif (message.mediatype)=='RC:VcMsg'>
                                这是一条语音消息
                            <#elseif (message.mediatype)=='RC:ImgMsg'>
                                这是一条图片消息
                            <#else>
                                未知消息类型
                            </#if>
                        </span>
                    </div>
                </div>
            </#if>

    </#list>
</#if>

</div>